package cn.kgc.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/6/29
 * @Description:
 */
@FeignClient(value = "Hystrix",fallback = HystrixClientFallback.class)
public interface HystrixClient {

    @GetMapping("/user/getById")
    String getById(@RequestParam("id") Integer id);


}
